import { request } from '@/utils/request';
import CRUD from '@/utils/request/CRUD';

// 上报统计
export function homeReportStatistics(params: Record<string, any>) {
  return request.get({
    url: '/system/home/report-statistics',
    params,
  });
}
// 产值统计
export function homeMoneyStatistics(params: Record<string, any>) {
  return request.get({
    url: '/system/home/money-statistics',
    params,
  });
}
// 施工统计
export function homeEngineeringStatistics() {
  return request.get({
    url: '/system/home/engineering-statistics',
  });
}
// 设计师榜单
export function homeDesignerRanking(params: Record<string, any>) {
  return request.get({
    url: '/system/home/designer-performance-ranking',
    params,
  });
}
// 转设计统计
export function homeDesignerStatistics(params: Record<string, any>) {
  return request.get({
    url: '/system/home/design-statistics',
    params,
  });
}
// 渠道统计
export function homeChannelStatistics(params: Record<string, any>) {
  return request.get({
    url: '/system/home/channel-statistics',
    params,
  });
}
// 客服业绩榜单
export function homeSaleRanking(params: Record<string, any>) {
  return request.get({
    url: '/system/home/sale-performance-ranking',
    params,
  });
}

// 获取获客部人员数据
export function homeHuokeData(params: Record<string, any>) {
  return request.get({
    url: '/system/home/get-huoke-data',
    params,
  });
}

// 获取获客部渠道数据
export function homeHuokePlatform(params: Record<string, any>) {
  return request.get({
    url: '/system/home/channel-platform-data',
    params,
  });
}

// 获取设计部数据
export function homeDesignData(params: Record<string, any>) {
  return request.get({
    url: '/system/home/design-data',
    params,
  });
}

// 获取产品部数据
export function homeProductData(params: Record<string, any>) {
  return request.get({
    url: '/system/home/product-data',
    params,
  });
}

// 获取工程部数据
export function homeEngineeringData(params: Record<string, any>) {
  return request.get({
    url: '/system/home/engineering-data',
    params,
  });
}

// 获取单品部数据
export function homeSingleData(params: Record<string, any>) {
  return request.get({
    url: '/system/home/single-product-data',
    params,
  });
}